package com.whitlock.backend.exception;


public class Http4xxException extends RuntimeException {
    private int errorCode;
    private String errorMessage;
    private Object detail;

    public Http4xxException(int errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    public Http4xxException(int errorCode, String errorMessage, Object detail) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
        this.detail = detail;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public Object getDetail() {
        return detail;
    }
}
